package com.jing.weibo.mapper.system;

import java.util.List;

import com.jing.weibo.pojo.user.UserInfo;


/**
 *统计的Mapper
 * @author jing.yue
 * @version 2012/09/26 1.0.0
 */
public interface StatisticsMapper {

	/**
	 * 获取总用户数
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findCountUser() throws Exception;

	/**
	 * 获取今日活跃用户数
	 * @param stringtime
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findCountActiveUser(String stringtime) throws Exception;

	/**
	 * 获取今日新增用户数
	 * @param stringtime
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findCountAddUser(String stringtime) throws Exception;

	/**
	 * 分页获取最近登录的用户列表
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public abstract List<UserInfo> findlatelyLoginUser(UserInfo userInfo) throws Exception;

	/**
	 * 分页获取最近登录的用户列表记录数
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findlatelyLoginUserCount(UserInfo userInfo) throws Exception;
}